public class Main {
    public static void main(String[] args) {
        tree binarySearchTree = new tree();
        binarySearchTree.insert(3);
        binarySearchTree.insert(2);
        binarySearchTree.insert(4);
        binarySearchTree.insert(1);
        binarySearchTree.insert(5);
       binarySearchTree.removeNode(4);

    }
}